﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace TRON_TheGrid
{
    class ObjetAnime:ObjetFixe
    {
        //ATTRIBUTS--------------------------------------------------------------
       
        private Vector2 vitesse;
        
        public Vector2 Vitesse
        {
            get { return vitesse; }
            set { vitesse = value; }
        }
      
        //Constructeur------------------------------------------------------------
        public ObjetAnime(Game game,Texture2D texture, Vector2 position, Vector2 size,Vector2 vitesse):base(game,texture,position,size)
        {
            this.vitesse = vitesse;
        }

        public override void Update(GameTime gameTime)
        {
            this.Position += this.vitesse;
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
        }
    }
}
